package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessRoomImgMapper;
import com.ruoyi.openDoor.domain.BusinessRoomImg;
import com.ruoyi.openDoor.service.IBusinessRoomImgService;

/**
 * 商家的包间的图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessRoomImgServiceImpl implements IBusinessRoomImgService 
{
    @Autowired
    private BusinessRoomImgMapper businessRoomImgMapper;

    /**
     * 查询商家的包间的图片
     * 
     * @param id 商家的包间的图片主键
     * @return 商家的包间的图片
     */
    @Override
    public BusinessRoomImg selectBusinessRoomImgById(Long id)
    {
        return businessRoomImgMapper.selectBusinessRoomImgById(id);
    }

    /**
     * 查询商家的包间的图片列表
     * 
     * @param businessRoomImg 商家的包间的图片
     * @return 商家的包间的图片
     */
    @Override
    public List<BusinessRoomImg> selectBusinessRoomImgList(BusinessRoomImg businessRoomImg)
    {
        return businessRoomImgMapper.selectBusinessRoomImgList(businessRoomImg);
    }

    /**
     * 新增商家的包间的图片
     * 
     * @param businessRoomImg 商家的包间的图片
     * @return 结果
     */
    @Override
    public int insertBusinessRoomImg(BusinessRoomImg businessRoomImg)
    {
        return businessRoomImgMapper.insertBusinessRoomImg(businessRoomImg);
    }

    /**
     * 修改商家的包间的图片
     * 
     * @param businessRoomImg 商家的包间的图片
     * @return 结果
     */
    @Override
    public int updateBusinessRoomImg(BusinessRoomImg businessRoomImg)
    {
        return businessRoomImgMapper.updateBusinessRoomImg(businessRoomImg);
    }

    /**
     * 批量删除商家的包间的图片
     * 
     * @param ids 需要删除的商家的包间的图片主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRoomImgByIds(Long[] ids)
    {
        return businessRoomImgMapper.deleteBusinessRoomImgByIds(ids);
    }

    /**
     * 删除商家的包间的图片信息
     * 
     * @param id 商家的包间的图片主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRoomImgById(Long id)
    {
        return businessRoomImgMapper.deleteBusinessRoomImgById(id);
    }
}
